package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.CarOperateLogMapper;
import com.whq.entity.CarOperateLog;
import com.whq.service.CarOperateLogService;

@Service(value = "tdCarOperateLogService")
public class CarOperateLogServiceImpl implements CarOperateLogService {

    @Autowired
    private CarOperateLogMapper<CarOperateLog>tdCarOperateLogMapper;
    
    @Override
    public Integer insertSelective(CarOperateLog tdCarOperateLog) throws Exception {
           return this.tdCarOperateLogMapper.insertSelective(tdCarOperateLog);
        }

    @Override
    public Integer insertBatch(List<CarOperateLog> tdCarOperateLog) throws Exception {
           return this.tdCarOperateLogMapper.insertBatch(tdCarOperateLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdCarOperateLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdCarOperateLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(CarOperateLog tdCarOperateLog) {
           return this.tdCarOperateLogMapper.updateByPrimaryKeySelective(tdCarOperateLog);
    }

    @Override
    public CarOperateLog findById(Object id) {
           return (CarOperateLog) this.tdCarOperateLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CarOperateLog> selectByCondition(CarOperateLog tdCarOperateLog) {
           return (List<CarOperateLog>) this.tdCarOperateLogMapper.selectByCondition(tdCarOperateLog);
    }

    @Override
    public Integer selectCountByCondition(CarOperateLog tdCarOperateLog) {
           return  this.tdCarOperateLogMapper.selectCountByCondition(tdCarOperateLog);
    }

}
